package utils;

import org.jsoup.Jsoup;
import org.jsoup.safety.Whitelist;

public class JsoupUtil {
	
	public static String jsoupFilter(String sourceStr){
		String safeStr = Jsoup.clean(sourceStr, Whitelist.basicWithImages());
		return safeStr;
	}
	public static boolean jsoupCheck(String sourceStr){
		return Jsoup.isValid(sourceStr, Whitelist.basic());
	}
}
